﻿using EntityFramework.Entity.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YouTravel.DomainModels;

namespace Repositories.Configuration
{
   public  class ShortMessageMap : EntityConfigurationBase<ShortMessage>
    {
       public ShortMessageMap()
       {
           this.Property(p => p.Receive).HasMaxLength(200).IsRequired();
           this.Property(p => p.Content).HasMaxLength(100).IsRequired();
           this.Property(p => p.Code).HasMaxLength(10).IsOptional();

       }
    }
}
